import service,{ baseURL } from './index';
import { IScoreParams, IScoreAnalyseByTchParams,ICoManageList, IScoreAnalyseByStuParams } from '../type';

export const score = {
  fileExportUrl: `${baseURL}/score/fileExport`,
  save: (data: IScoreParams) => {
    return service({
      url: `/score/save`,
      method: 'post',
      data,
    });
  },
  findPage: (data: any) => {
    return service({
      url: `/score/findPage`,
      method: 'post',
      data,
    });
  },
  findScoreAnalyseByTch: (params: IScoreAnalyseByTchParams) => {
    return service({
      url: '/score/analyseScoreByTch',
      method: 'get',
      params,
    });
  },
  findScoreAnalyseByStu: (data: IScoreAnalyseByStuParams) => {
    return service({
      url: '/score/analyseScoreByStu',
      method: 'post',
      data,
    });
  },
}